﻿@using Smartstore.Web.Models.Catalog;

@model ProductSummaryItemModel

<div class="art-brand">
    @if (Model.Brand != null)
    {
        var image = Model.Brand.Image;
        if (image?.File != null && Model.Parent.ViewMode == ProductSummaryViewMode.List)
        {
            // TODO: (mc) (low) Whether to link or not > make setting > see issue #397.
            <a asp-route="Manufacturer" asp-route-SeName="@Model.Brand.SeName" title="@image.Title">
                <img sm-model="image" class="art-brand-picture" />
            </a>
        }
        else
        {
            <span sm-language-attributes-for="Model.Brand.Name">@Model.Brand.Name</span>
        }
    }
</div>